home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ASDebugging.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  6.4 KB  |  171 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ASDebugging.p
  3.  
  4.      Contains:    AppleScript Debugging Interfaces.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1992-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT ASDebugging;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __ASDEBUGGING__}
  27. {$SETC __ASDEBUGGING__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ASDebuggingIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __MACTYPES__}
  34. {$I MacTypes.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __FILES__}
  37. {$I Files.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __COMPONENTS__}
  40. {$I Components.p}
  41. {$ENDC}
  42. {$IFC UNDEFINED __APPLEEVENTS__}
  43. {$I AppleEvents.p}
  44. {$ENDC}
  45. {$IFC UNDEFINED __APPLESCRIPT__}
  46. {$I AppleScript.p}
  47. {$ENDC}
  48.  
  49.  
  50. {$PUSH}
  51. {$ALIGN MAC68K}
  52. {$LibExport+}
  53.  
  54. {*************************************************************************
  55.     Mode Flags
  56. *************************************************************************}
  57. {     This mode flag can be passed to OSASetProperty or OSASetHandler
  58.     and will prevent properties or handlers from being defined in a context
  59.     that doesn't already have bindings for them. An error is returned if
  60.     a current binding doesn't already exist. 
  61. }
  62.  
  63. CONST
  64.     kOSAModeDontDefine            = $0001;
  65.  
  66. {*************************************************************************
  67.     Component Selectors
  68. *************************************************************************}
  69.     kASSelectSetPropertyObsolete = $1101;
  70.     kASSelectGetPropertyObsolete = $1101;
  71.     kASSelectSetHandlerObsolete    = $1103;
  72.     kASSelectGetHandlerObsolete    = $1104;
  73.     kASSelectGetAppTerminologyObsolete = $1105;
  74.     kASSelectSetProperty        = $1106;
  75.     kASSelectGetProperty        = $1107;
  76.     kASSelectSetHandler            = $1108;
  77.     kASSelectGetHandler            = $1109;
  78.     kASSelectGetAppTerminology    = $110A;
  79.     kASSelectGetSysTerminology    = $110B;
  80.     kASSelectGetPropertyNames    = $110C;
  81.     kASSelectGetHandlerNames    = $110D;
  82.  
  83. {*************************************************************************
  84.     Context Accessors
  85. *************************************************************************}
  86. FUNCTION OSASetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  87.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  88.     INLINE $2F3C, $0010, $1106, $7000, $A82A;
  89.     {$ENDC}
  90. FUNCTION OSAGetProperty(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  91.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  92.     INLINE $2F3C, $0010, $1107, $7000, $A82A;
  93.     {$ENDC}
  94. FUNCTION OSAGetPropertyNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingPropertyNames: AEDescList): OSAError;
  95.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  96.     INLINE $2F3C, $000C, $110C, $7000, $A82A;
  97.     {$ENDC}
  98. FUNCTION OSASetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  99.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  100.     INLINE $2F3C, $0010, $1108, $7000, $A82A;
  101.     {$ENDC}
  102. FUNCTION OSAGetHandler(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  103.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  104.     INLINE $2F3C, $0010, $1109, $7000, $A82A;
  105.     {$ENDC}
  106. FUNCTION OSAGetHandlerNames(scriptingComponent: ComponentInstance; modeFlags: LONGINT; contextID: OSAID; VAR resultingHandlerNames: AEDescList): OSAError;
  107.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  108.     INLINE $2F3C, $000C, $110D, $7000, $A82A;
  109.     {$ENDC}
  110. FUNCTION OSAGetAppTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; VAR fileSpec: FSSpec; terminologyID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  111.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  112.     INLINE $2F3C, $0012, $110A, $7000, $A82A;
  113.     {$ENDC}
  114. { Errors:
  115.        errOSASystemError        operation failed
  116.     }
  117. FUNCTION OSAGetSysTerminology(scriptingComponent: ComponentInstance; modeFlags: LONGINT; terminologyID: INTEGER; VAR terminologyList: AEDesc): OSAError;
  118.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  119.     INLINE $2F3C, $000A, $110B, $7000, $A82A;
  120.     {$ENDC}
  121. { Errors:
  122.        errOSASystemError        operation failed
  123.     }
  124. { Notes on terminology ID
  125.  
  126.     A terminology ID is derived from script code and language code
  127.     as follows;
  128.  
  129.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  130. }
  131.  
  132. {*************************************************************************
  133.     Obsolete versions provided for backward compatibility:
  134. }
  135. FUNCTION ASSetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; scriptValueID: OSAID): OSAError;
  136.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  137.     INLINE $2F3C, $000C, $1101, $7000, $A82A;
  138.     {$ENDC}
  139. FUNCTION ASGetProperty(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR variableName: AEDesc; VAR resultingScriptValueID: OSAID): OSAError;
  140.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  141.     INLINE $2F3C, $000C, $1102, $7000, $A82A;
  142.     {$ENDC}
  143. FUNCTION ASSetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; compiledScriptID: OSAID): OSAError;
  144.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  145.     INLINE $2F3C, $000C, $1103, $7000, $A82A;
  146.     {$ENDC}
  147. FUNCTION ASGetHandler(scriptingComponent: ComponentInstance; contextID: OSAID; {CONST}VAR handlerName: AEDesc; VAR resultingCompiledScriptID: OSAID): OSAError;
  148.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  149.     INLINE $2F3C, $000C, $1104, $7000, $A82A;
  150.     {$ENDC}
  151. FUNCTION ASGetAppTerminology(scriptingComponent: ComponentInstance; VAR fileSpec: FSSpec; terminologID: INTEGER; VAR didLaunch: BOOLEAN; VAR terminologyList: AEDesc): OSAError;
  152.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  153.     INLINE $2F3C, $000E, $1105, $7000, $A82A;
  154.     {$ENDC}
  155. { Errors:
  156.         errOSASystemError        operation failed
  157.     }
  158. {************************************************************************}
  159.  
  160.  
  161. {$ALIGN RESET}
  162. {$POP}
  163.  
  164. {$SETC UsingIncludes := ASDebuggingIncludes}
  165.  
  166. {$ENDC} {__ASDEBUGGING__}
  167.  
  168. {$IFC NOT UsingIncludes}
  169.  END.
  170. {$ENDC}
  171.